Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments\WooPaymentsRestController A

Total Complexity 70
Dependencies 9
Dependents 2
Total lines 1,217
Lines of code 908
Logical lines of code 194
Comment lines 223
Methods 24
Properties 4

Methods 24

Method Rating Maintainability Complexity Lines of code
register_routes()
B
23
1 391
get_schema_for_get_onboarding_details()
A
29 1 198
prepare_onboarding_details_response_recursive()
A
51 11 25
check_permissions()
S
55 5 20
handle_onboarding_business_verification_kyc_session_init()
S
55 4 19
handle_onboarding_business_verification_kyc_session_finish()
S
57 4 16
get_onboarding_details()
S
57 4 15
handle_onboarding_preload()
S
58 4 15
handle_onboarding_step_start()
S
54 3 20
handle_onboarding_step_finish()
S
54 3 20
handle_test_account_disable()
S
55 3 20
handle_onboarding_step_clean()
S
55 3 19
handle_onboarding_test_account_init()
S
55 3 19
reset_onboarding()
S
57 3 16
handle_onboarding_step_save()
S
57 3 15
handle_onboarding_step_check()
S
58 3 14
check_location_arg()
S
61 3 11
handle_onboarding_test_account_reset()
S
63 2 11
get_schema_properties_for_onboarding_step_action()
S
58 1 17
get_rest_url_path()
S
67 2 7
get_rest_api_namespace()
S
82 1 3
init()
S
76 1 4
get_woopay_eligibility()
S
65 1 10
prepare_onboarding_details_response()
S
79 1 3